package cn.glutnn.dao;

import java.util.List;

import cn.glutnn.entity.Ticket;
import cn.glutnn.util.JdbcUtils;

public class TicketDao {

	public boolean save(Ticket ticket) {
		return JdbcUtils.save(ticket);
	}

	public List<Ticket> findByTel(String tel) {
		String sql = "select * from t_ticket where tel = '" + tel + "'";
		return JdbcUtils.query(sql, Ticket.class);
	}

}
